#ifndef BACKGROUND_H_
#define BACKGROUND_H_

#include "game_status.h"
#include "raylib.h"

class BackGround
{
  public:
    BackGround();
    BackGround(BackGround &&) = default;
    BackGround(const BackGround &) = default;
    BackGround &operator=(BackGround &&) = default;
    BackGround &operator=(const BackGround &) = default;
    ~BackGround();

    void Draw();
    void EventHandler(GameStatus *gameStatus);

  private:
    float y;
    float speedY;
    // 背景
    Texture2D bg;
    // 边缘
    Texture2D terrain;
    //  尘埃
    Texture2D dust[3];
    Vector2 dustPosition;
    bool hadDust;
    int dustTime;
    float dustRemainTime;
};

#endif // !BACKGROUND_H_